home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trouble & Attitude 4
/
Trouble and Attitude - Issue 04.iso
/
mac
/
DATA
/
MOVIES
/
COMMON.Cxt
/
00136_Field_Intro INDEX TEMPLATE.txt
< prev
next >
Wrap
Text File
|
1997-01-14
|
5KB
|
180 lines
--
-- INDEX PAGE script
--
on stringDigit int
case int of
0: return "0"
1: return "1"
2: return "2"
3: return "3"
4: return "4"
5: return "5"
6: return "6"
7: return "7"
8: return "8"
9: return "9"
otherwise
return "*"
end case
end stringDigit
on enterFrame
global gSoloMode
global gControlIcon -- channel for control panel icon
global gControlPanel -- control panel object
global gFeatureIconFirst, gFeatureIconLast -- range of channels for feature icons
global gDepartmentIconFirst, gDepartmentIconLast -- range of channels for department icons
global gLocalSound, gMusicOn, gCaptionOn
global gCurPath, gNavMode
global gFeatureMovies, gDepartmentMovies
set gNavMode = "index"
cursor -1
-- make sure the control panel is current in every way
if objectP(gControlPanel) then
tell window "Control Panel"
setIconStatus "music", gMusicOn
setIconStatus "caption", gCaptionOn
end tell
end if
-- Set up the sprite/channel relationship for this section
-- Intro Sprites
set gFeatureIconFirst = 7 -- range of feature icon channels
set gFeatureIconLast = 12
set gDepartmentIconFirst = 14 -- range of dept icon channels
set gDepartmentIconLast = 20
set gControlIcon = 22
if voidP("gLocalSound") then
set gLocalSound = FALSE
else
set gLocalSound = FALSE
end if
puppetsprite gIndexIcon TRUE
set the member of sprite gControlIcon to member "control-icon"
set N = 1
repeat with C = gFeatureIconFirst to gFeatureIconLast
puppetsprite C TRUE
set the member of sprite C to member ("feature-" & N & "-icon")
set N = N + 1
end repeat
set N = 1
repeat with C = gDepartmentIconFirst to gDepartmentIconLast
puppetsprite C TRUE
set the member of sprite C to member ("department-" & N & "-icon")
set N = N + 1
end repeat
set touched = FALSE
if rollOver(gControlIcon) then
set the member of sprite gControlIcon to member "control-icon-hot"
set the text of member "Message Text" to "Reveal the control panel"
set touched = TRUE
end if
set N = 1
repeat with C = gFeatureIconFirst to gFeatureIconLast
if rollOver(C) then
set the member of sprite C to member ("feature-" & N & "-icon-hot")
set the text of member "Message Text" to "Feature article..."
set touched = TRUE
end if
set N = N + 1
end repeat
set N = 1
repeat with C = gDepartmentIconFirst to gDepartmentIconLast
if rollOver(C) then
set the member of sprite C to member ("department-" & N & "-icon-hot")
set the text of member "Message Text" to "Department..."
set touched = TRUE
end if
set N = N + 1
end repeat
if touched = FALSE then
set the text of member "Message Text" to "Click on one of the icons..."
end if
dontPassEvent
end enterFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on exitFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gIndexIcon, gFirstIcon
global gButton1, gButton2, gButton3
global gTest
if gSoloMode = FALSE then
keepmusic
end if
set gTest = 1
go to the frame
dontPassEvent
end exitFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on MouseUp
global gMovieName, gMovie, gSoloMode
global gControlIcon, gDepartmentIconFirst, gFeatureIconFirst
global gDepartmentIconLast, gFeatureIconLast, gDestination
set destination = "*"
if the ClickOn = gControlIcon then
openControlPanel
end if
set N = 1
repeat with C = gFeatureIconFirst to gFeatureIconLast
if the clickOn = C then
set destination = getAt(gFeatureMovies, N)
set destinationType = "F"
set loadingFrame = ( destinationType & stringDigit(N) )
end if
set N = N + 1
end repeat
set N = 1
repeat with C = gDepartmentIconFirst to gDepartmentIconLast
if the clickOn = C then
set destination = getAt(gDepartmentMovies, N)
set destinationType = "D"
set loadingFrame = ( destinationType & stringDigit(N) )
end if
set N = N + 1
end repeat
if destination <> "*" then
repeat with C = gFeatureIconFirst to gFeatureIconLast
puppetsprite C FALSE
end repeat
repeat with C = gDepartmentIconFirst to gDepartmentIconLast
puppetsprite C FALSE
end repeat
puppetsprite gControlIcon FALSE
set gDestination = destination
go to frame loadingFrame
end if
end MouseUp